import 'package:equatable/equatable.dart';
import 'package:mobile_app.home.core/core/domain/entities/card_actions/card_action.dart';

class ExclusionFromLearningCardAction extends Equatable implements CardAction {
  const ExclusionFromLearningCardAction({
    required this.permitted,
  });

  final bool permitted;

  @override
  List<Object?> get props {
    return [
      permitted,
    ];
  }

  ExclusionFromLearningCardAction copyWith({
    bool Function()? permitted,
  }) {
    return ExclusionFromLearningCardAction(
      permitted: permitted == null ? this.permitted : permitted(),
    );
  }
}